package com.ecoolex.ying.space.ws;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;
import com.ecoolex.ying.space.core.manager.UserIdentityAuthenticationManager;
import com.ecoolex.ying.space.entity.UserIdentityAuthentication;

@Service
public class UserIdentityAuthenticationServiceImpl implements UserIdentityAuthenticationService{
	
	@Autowired
	private UserIdentityAuthenticationManager userIdentityAuthenticationManager;

	@Override
	public UserIdentityAuthentication add(UserIdentityAuthentication record, String createUser) throws BizException {
		return userIdentityAuthenticationManager.add(record, createUser);
	}

	@Override
	public UserIdentityAuthentication edit(UserIdentityAuthentication record, String updateUser) throws BizException {
		return userIdentityAuthenticationManager.edit(record, updateUser);
	}

	@Override
	public void delete(UserIdentityAuthentication record, String updateUser) throws BizException {
		userIdentityAuthenticationManager.delete(record, updateUser);
	}

	@Override
	public UserIdentityAuthentication getByUserId(Integer userId) {
		return userIdentityAuthenticationManager.getByUserId(userId);
	}

	@Override
	public Pagination<UserIdentityAuthentication> query(Integer UserIdentityAuthenticationDomainType, Sorting[] sorts, Page page) {
		return userIdentityAuthenticationManager.query(UserIdentityAuthenticationDomainType, sorts, page);
	}

}
